<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $('#countCheckId').click(function(){
    count = 0;
    $.each($('input[type="checkbox"]'),function(index,elementObject){
      console.log(index);
      console.log(elementObject);
      //alert($(this).is(':checked'));    
      if($(this).is(':checked') == true){
        count++;
      }
    })
      alert('Number of checkbox checked: '+count);
      alert('Press F12 in chrome to check console, for console.log');
    });
  });
</script>
<p><a id="countCheckId" href="#">Click Here to know Number of checked Languages</a></p>
<p><input type="checkbox" value="php">php</p>
<p><input type="checkbox" value="C">C</p>
<p><input type="checkbox" value="C#">C#</p>
<p><input type="checkbox" value="Java">java</p>
<p><input type="checkbox" value=".Net">.Net</p>
<p><input type="checkbox" value="Perl">Perl</p>
